/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.namabank.exception;
/**
 *
 * @author Hienforis
 */
public class MessageException extends Throwable{
    private String message = "";
    private Object tag = null;
    public MessageException(String message){
        this.message = message;
    }
    public MessageException(String message, Object tag){
        this.message = message;
        this.tag = tag;
    }

    /**
     * @return the message
     */
    @Override
    public String getMessage() {
        return message;
    }

    /**
     * @param message the message to set
     */
    public void setMessage(String message) {
        this.message = message;
    }

    /**
     * @return the tag
     */
    public Object getTag() {
        return tag;
    }

    /**
     * @param tag the tag to set
     */
    public void setTag(Object tag) {
        this.tag = tag;
    }

}
